package com.bdqn.t350.ch09;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import redis.clients.jedis.Jedis;

//@SpringBootTest
//@RunWith(SpringRunner.class)
public class JedisTester {

    @Test
    public void redisTest() {
        //authentication
        System.out.println("ok");
        Jedis jedis = new Jedis("localhost", 6379);
        //jedis.auth("123");
        //System.out.println("连接成功");
        //jedis.set("T350", "yy");
        System.out.println(jedis.get("T350"));
    }
}
